$(function(){
	$.support.cors = true;
	$.mobile.allowCrossDomainPages=true;
	$('#login').click(function(){
		var userName = $('#username').val();
		var passwd = $('#password').val();
		//alert(userName + " " + passwd);
		$.ajax({
			type:"POST",
			url:"http://10.10.17.62:8080/sfw/testjsonp",
			dataType:"jsonp",
			jsonp:"callback",
			jsonpCallback : "handler",
			//context:this,
			contentType:"application/json;charset=UTF-8",
			data:{username:userName,passwd:passwd},
			async:true,
			success:function(data){
				alert("login success!");
				//$(this).alert("3333");
			}
		});
		function handler(data){
			alert("good");
		}
	})
	
})